package com.t4htest;

import android.os.Bundle;

public class Store {
	private int imageSource;
	private String storeName;
	private String tell;
	private String simpleIntroduction;
	private int location;
	int category;
	double x;
	double y;
	int index;
	
	Store(int location, int category, int imageSource, String storeName,
			String tell, String simpleIntroduction, double x, double y) {
		this.imageSource = imageSource;
		this.storeName = storeName;
		this.tell = tell;
		this.simpleIntroduction = simpleIntroduction;
		this.location = location;
		this.category = category;
		this.x = x;
		this.y = y;
	}
	
	public int getLocation() {
		return location;
	}

	public int getCategory() {
		return category;
	}

	public String getStoreName() {
		return storeName;
	}
	
	public double getX(){
		return x;
	}
	
	public double getY(){
		return y;
	}
	
	public Bundle getBundle() {
		Bundle info = new Bundle();
		info.putInt("imageS", imageSource);
		info.putString("name", storeName);
		info.putString("tell", tell);
		info.putString("Sintroduction", simpleIntroduction);
		return info;
	}
	public Bundle getXY(){
		Bundle xy = new Bundle();
		xy.putDouble("x", x);
		xy.putDouble("y", y);
		xy.putString("name", storeName);
		return xy;
	}
}
